<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="form-horizontal">
    <div class="form-group">
        <label class="control-label col-md-2">用户ID</label>
        <div class="col-md-10">
            <input type="hidden" name="white" value="1"/>
            <input type="text" id="userid" name="userid" class="form-control" value="${model.userid}"/>
        </div>
    </div>
</div>
<div class="form-group">
    <div class="col-md-offset-2 col-md-10">
        <button type="submit" class="btn btn-primary">
            <i class="fa fa-floppy-o"></i> 保存
        </button>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#form3").bootstrapValidator({
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            fields: {
                userid: {
                    validators: {
                        notEmpty: {
                            message: '不能为空'
                        },
                        stringLength: {
                            max: 11,
                            message: '长度过长'
                        }
                    }
                }
            }
        });
    });
</script>